LDFLAGS=-Wl,--gc-sections -lpthread -ldl
CFLAGS=-g -ffunction-sections -fdata-sections
all:
	cargo build
	gcc $(CFLAGS) $(LDFLAGS) main.c -o main ../../target/debug/libleclient.a -lpthread -ldl
dist:
	cargo xbuild --release -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-unknown-linux-gnu
	gcc -O2 $(CFLAGS) $(LDFLAGS)  main.c -o main ../../target/x86_64-unknown-linux-gnu/release/libleclient.a -lpthread -ldl
clean:
	rm main
